﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:rmcg="http://schemas.wicresoft.com/remedy/2010/10/rmcg" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="rmcg">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Server">
          <xs:complexType>
            <xs:attribute name="Server" type="xs:string" use="required" />
            <xs:attribute name="User" type="xs:string" use="required" />
            <xs:attribute name="Password" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="Mappings">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Mapping">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="EntityTypeMapping">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="MappingFragment">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element maxOccurs="unbounded" name="ScalarProperty">
                                  <xs:complexType>
                                    <xs:attribute name="Name" type="xs:string" use="required" />
                                    <xs:attribute name="ColumnName" type="xs:string" use="required" />
                                    <xs:attribute name="Mapped" type="xs:boolean" use="required" />
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                              <xs:attribute name="StoreEntitySet" type="xs:string" use="required" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="TypeName" type="xs:string" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="Version" type="xs:string" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>